<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="/Public/Admin/css/pintuer.css">
<link rel="stylesheet" href="/Public/Admin/css/admin.css">
<script src="/Public/Admin/js/jquery.js"></script>
<script src="/Public/Admin/js/pintuer.js"></script>
</head>
<body>

  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder">单车列表</strong> <a href="" style="  float:right; display:none;">添加字段</a></div>
    <!--<div class="padding border-bottom">-->
		<!--<form action="/Admin/Index/seatlist" method="get">-->
		  <!--<ul class="search" style="padding-left:10px;">-->
			  <!--<input type="text" placeholder="请输入搜索关键字" name="keywords" class="input" style="width:250px; line-height:17px;display:inline-block" value="<?php echo ($keywords); ?>" />-->
			  <!--&lt;!&ndash;<a href="javascript:void(0)" class="button border-main icon-search" onclick="changesearch()" > 搜索</a>&ndash;&gt;-->
			  <!--<input type="submit" class="button border-main icon-search" value="搜索">-->
		  <!--</ul>-->
		<!--</form>-->
    <!--</div>-->
    <table class="table table-hover text-center">
      <tr>
        <th width="100" style=" padding-left:20px;">ID</th>
        <th>单车id</th>
        <th>用户</th>
        <th>入站时间</th>
        <th>出站时间</th>
        <th>状态</th>
        <!--<th width="310">操作</th>-->
      </tr>
      <?php if(is_array($lists)): $i = 0; $__LIST__ = $lists;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
          <td style=" padding-left:20px;"><?php echo ($vo["id"]); ?></td>
          <td><?php echo ($vo["seat_id"]); ?></td>
          <td><?php echo ($vo["name"]); ?></td>
          <td><?php echo ($vo["in_time"]); ?></td>
          <td><?php echo ($vo["out_time"]); ?></td>
          <td><?php if($vo['status'] == '0'): ?><a class="button border-blue">空</a>
			  <?php else: ?>
			  <a class="button border-red">已停</a><?php endif; ?>
		  </td>
          <!--<td><div class="button-group">-->
			  <!--<?php if($vo['type'] == '0'): ?>-->
				  <!--<a class="button border-blue" href="/Admin/Index/buy_seat/seat_id/<?php echo ($vo["seat_id"]); ?>"><span class="icon-trash-o"></span> 购买</a>-->
				  <!--<?php else: ?>-->
				  <!--<a class="button border-red">无</a>-->
			  <!--<?php endif; ?>-->
		  <!--</div></td>-->
        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
      <tr>
        <td colspan="6">
			<div class="pagelist">
				<a href="/Admin/Index/seatlist/page/0">首页</a>
				<a href="/Admin/Index/seatlist/page/<?php echo ($pages['page']-1); ?>">上一页</a>
				<?php if(is_array($pages["num"])): foreach($pages["num"] as $key=>$p): if($p-1 == $pages['page']): ?><span class="current"><?php echo ($p); ?></span>
						<?php else: ?>
						<a href="/Admin/Index/seatlist/page/<?php echo ($p-1); ?>"><?php echo ($p); ?></a><?php endif; endforeach; endif; ?>
				<a href="/Admin/Index/seatlist/page/<?php echo ($pages['page']+1); ?>">下一页</a>
				<a href="/Admin/Index/seatlist/page/<?php echo ($pages['total']); ?>">尾页</a>
			</div>
		</td>
      </tr>
    </table>
  </div>

<script type="text/javascript">
	$("body").bind("keydown",function(event){
		if (event.keyCode == 116) {
			event.preventDefault(); //阻止默认刷新
			//location.reload();
			//采用location.reload()在火狐下可能会有问题，火狐会保留上一次链接
			location=location;
		}
	})


</script>
</body>
</html>